#ifndef AREATEST_H
#define AREATEST_H

#include <QObject>
#include <QOpenGLWindow>
#include <QOpenGLContext>
#include <QOpenGLShaderProgram>
#include <QOpenGLFunctions>
#include <QtDebug>
#include "AreaTest/glserver.h"

class AreaTest : public QOpenGLWindow, protected QOpenGLFunctions
{
    Q_OBJECT
public:
    AreaTest(QWindow *parent = nullptr);
    ~AreaTest();

protected:
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();

private:
    QOpenGLContext *pContext;
    QOpenGLShaderProgram *pShader;
    GLServer *pServer;

    int posAttr, colorUni;
};

#endif // AREATEST_H
